import request from '@/utils/request'


export function findByPage(query) {
    return request({
      url: '/announcement/findByPage',
      method: 'get',
      params:query //表单数据
    })
  }
  
  export function updatAnnouncement(data) {
    return request({
      url: '/announcement/updatAnnouncement',
      method: 'post',
      data
    })
  }
  export function addAnnouncement(data) {
    return request({
      url: '/announcement/addAnnouncement',
      method: 'post',
      data
    })
  }
  
  export function deleteAnnouncement(announcementId) {
    return request({
        url: '/announcement/deleteAnnouncement',
      method: 'get',
      params:{"announcementId":announcementId}//form
    })
  }  
